package vcp.client.forms;

import vcp.entity.Subscription;
import vcp.enums.FormType;

/**
 * 
 * @author VCP team
 *         <p>
 *         Subscription form generation
 *         </p>
 * @see Subscription
 */
public class SubscriptionForm extends FormAbstract
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7484867786224579734L;

	/** subscription number for the form **/
	private final Integer subscriptionID;

	public Integer getSubscriptionID ()
	{
		return this.subscriptionID;
	}

	/** subscription car number **/
	private final Integer carID;

	public Integer getCarID ()
	{
		return this.carID;
	}

	/** subscription instance **/
	private Subscription subscription;

	public Subscription getSubscription ()
	{
		return this.subscription;
	}

	public void setSubscription ( Subscription subscription )
	{
		this.subscription = subscription;
	}

	/**
	 * insert data into the form
	 * 
	 * @param formType
	 * @param subscription
	 * @param subscriptionID
	 * @param carID
	 */
	public SubscriptionForm ( FormType formType, Subscription subscription, Integer subscriptionID, Integer carID )
	{
		super(formType);
		this.subscription = subscription;
		this.subscriptionID = subscriptionID;
		this.carID = carID;
	}
}
